import { AbstractObject } from "../types/object-type";
export function isNumber(obj: unknown): obj is number {
  return typeof obj === "number";
}
export function isBoolean(obj: unknown): obj is boolean {
  return typeof obj === "boolean";
}
export function isString(obj: unknown): obj is string {
  return typeof obj == "string";
}
export function isObject(object: unknown): object is object {
  if (object === null) return false;
  return typeof object == "object";
}
export function isMyObject(obj: unknown): obj is AbstractObject {
  return obj instanceof AbstractObject;
}
